/**
 *  Created by clz on
 *  Function:
 *  Desc:
 */
import React, {Component} from 'react';
import {View, StyleSheet} from 'react-native';

var WebViewAndroid = require('react-native-webview-android');
import {WebView} from 'react-native-webview';

export default class web extends Component {
    constructor(props) {
        super(props);
        this.state = {};
    }

    render() {
        let url = 'https://www.baidu.com/';
        let url1 = 'http://192.168.0.127:5003/manMade?_TOKEN=28fbe77f239a40b6b625e62b46b355ce';
        return (
            <WebView
                //url={url1}
                source={{uri: url1 || 'uri', method: 'GET', header: {'Cache-Control': 'no-cache'}}}
                bounces={false}
                ref={(webview) => {
                    this.web = webview
                }}
                style={{backgroundColor: '#F6F7F9', flex: 1, marginBottom: this.state.keyboardHeight}}
            />

        )
    }

}
